// index.js页面逻辑代码
export default {
    data: {
        appData: 'localData',
        appVersion:'1.0',
    },
    onInit() {
        this.appData = this.$app.$def.globalData.appData;
        this.appVersion = this.$app.$def.globalData.appVersion;
    },
    invokeGlobalMethod() {
        //调用全局方法
        this.$app.$def.globalMethod();
        this.getAppVersion();
    },
    getAppVersion() {
        //调用全局对象
        this.appVersion = this.$app.$def.globalData.appVersion;
    }
}